3.22.57 \(\int (a c+b c x) (d+e x)^{-3-2 p} (a^2+2 a b x+b^2 x^2)^p \, dx\) [2157]

Optimal. Leaf size=51 \[ \frac {c (d+e x)^{-2 (1+p)} \left (a^2+2 a b x+b^2 x^2\right )^{1+p}}{2 (b d-a e) (1+p)} \]

[Out]

1/2*c*(b^2*x^2+2*a*b*x+a^2)^(1+p)/(-a*e+b*d)/(1+p)/((e*x+d)^(2+2*p))

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.026, Rules used = {781} \begin {gather*} \frac {c \left (a^2+2 a b x+b^2 x^2\right )^{p+1} (d+e x)^{-2 (p+1)}}{2 (p+1) (b d-a e)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a*c + b*c*x)*(d + e*x)^(-3 - 2*p)*(a^2 + 2*a*b*x + b^2*x^2)^p,x]

[Out]

(c*(a^2 + 2*a*b*x + b^2*x^2)^(1 + p))/(2*(b*d - a*e)*(1 + p)*(d + e*x)^(2*(1 + p)))

Rule 781

Int[((d_.) + (e_.)*(x_))^(m_.)*((f_) + (g_.)*(x_))*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp
[(-f)*g*(d + e*x)^(m + 1)*((a + b*x + c*x^2)^(p + 1)/(b*(p + 1)*(e*f - d*g))), x] /; FreeQ[{a, b, c, d, e, f,
g, m, p}, x] && EqQ[b^2 - 4*a*c, 0] && EqQ[m + 2*p + 3, 0] && EqQ[2*c*f - b*g, 0]

Rubi steps

\begin {align*} \int (a c+b c x) (d+e x)^{-3-2 p} \left (a^2+2 a b x+b^2 x^2\right )^p \, dx &=\frac {c (d+e x)^{-2 (1+p)} \left (a^2+2 a b x+b^2 x^2\right )^{1+p}}{2 (b d-a e) (1+p)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.06, size = 42, normalized size = 0.82 \begin {gather*} \frac {c \left ((a+b x)^2\right )^{1+p} (d+e x)^{-2 (1+p)}}{2 (b d-a e) (1+p)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a*c + b*c*x)*(d + e*x)^(-3 - 2*p)*(a^2 + 2*a*b*x + b^2*x^2)^p,x]

[Out]

(c*((a + b*x)^2)^(1 + p))/(2*(b*d - a*e)*(1 + p)*(d + e*x)^(2*(1 + p)))

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 59, normalized size = 1.16

method result size
gosper \(-\frac {\left (b x +a \right )^{2} \left (e x +d \right )^{-2-2 p} c \left (b^{2} x^{2}+2 a b x +a^{2}\right )^{p}}{2 \left (a e p -b d p +a e -b d \right )}\) \(59\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*c*x+a*c)*(e*x+d)^(-3-2*p)*(b^2*x^2+2*a*b*x+a^2)^p,x,method=_RETURNVERBOSE)

[Out]

-1/2*(b*x+a)^2*(e*x+d)^(-2-2*p)*c*(b^2*x^2+2*a*b*x+a^2)^p/(a*e*p-b*d*p+a*e-b*d)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*c*x+a*c)*(e*x+d)^(-3-2*p)*(b^2*x^2+2*a*b*x+a^2)^p,x, algorithm="maxima")

[Out]

integrate((b*c*x + a*c)*(b^2*x^2 + 2*a*b*x + a^2)^p*(x*e + d)^(-2*p - 3), x)

________________________________________________________________________________________

Fricas [A]
time = 1.99, size = 100, normalized size = 1.96 \begin {gather*} \frac {{\left (b^{2} c d x^{2} + 2 \, a b c d x + a^{2} c d + {\left (b^{2} c x^{3} + 2 \, a b c x^{2} + a^{2} c x\right )} e\right )} {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{p} {\left (x e + d\right )}^{-2 \, p - 3}}{2 \, {\left (b d p + b d - {\left (a p + a\right )} e\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*c*x+a*c)*(e*x+d)^(-3-2*p)*(b^2*x^2+2*a*b*x+a^2)^p,x, algorithm="fricas")

[Out]

1/2*(b^2*c*d*x^2 + 2*a*b*c*d*x + a^2*c*d + (b^2*c*x^3 + 2*a*b*c*x^2 + a^2*c*x)*e)*(b^2*x^2 + 2*a*b*x + a^2)^p*
(x*e + d)^(-2*p - 3)/(b*d*p + b*d - (a*p + a)*e)

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: HeuristicGCDFailed} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*c*x+a*c)*(e*x+d)**(-3-2*p)*(b**2*x**2+2*a*b*x+a**2)**p,x)

[Out]

Exception raised: HeuristicGCDFailed >> no luck

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 305 vs. \(2 (53) = 106\).
time = 1.65, size = 305, normalized size = 5.98 \begin {gather*} \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{p} b^{2} c x^{3} e^{\left (-2 \, p \log \left (x e + d\right ) - 3 \, \log \left (x e + d\right ) + 1\right )} + {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{p} b^{2} c d x^{2} e^{\left (-2 \, p \log \left (x e + d\right ) - 3 \, \log \left (x e + d\right )\right )} + 2 \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{p} a b c x^{2} e^{\left (-2 \, p \log \left (x e + d\right ) - 3 \, \log \left (x e + d\right ) + 1\right )} + 2 \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{p} a b c d x e^{\left (-2 \, p \log \left (x e + d\right ) - 3 \, \log \left (x e + d\right )\right )} + {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{p} a^{2} c x e^{\left (-2 \, p \log \left (x e + d\right ) - 3 \, \log \left (x e + d\right ) + 1\right )} + {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{p} a^{2} c d e^{\left (-2 \, p \log \left (x e + d\right ) - 3 \, \log \left (x e + d\right )\right )}}{2 \, {\left (b d p - a p e + b d - a e\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*c*x+a*c)*(e*x+d)^(-3-2*p)*(b^2*x^2+2*a*b*x+a^2)^p,x, algorithm="giac")

[Out]

1/2*((b^2*x^2 + 2*a*b*x + a^2)^p*b^2*c*x^3*e^(-2*p*log(x*e + d) - 3*log(x*e + d) + 1) + (b^2*x^2 + 2*a*b*x + a
^2)^p*b^2*c*d*x^2*e^(-2*p*log(x*e + d) - 3*log(x*e + d)) + 2*(b^2*x^2 + 2*a*b*x + a^2)^p*a*b*c*x^2*e^(-2*p*log
(x*e + d) - 3*log(x*e + d) + 1) + 2*(b^2*x^2 + 2*a*b*x + a^2)^p*a*b*c*d*x*e^(-2*p*log(x*e + d) - 3*log(x*e + d
)) + (b^2*x^2 + 2*a*b*x + a^2)^p*a^2*c*x*e^(-2*p*log(x*e + d) - 3*log(x*e + d) + 1) + (b^2*x^2 + 2*a*b*x + a^2
)^p*a^2*c*d*e^(-2*p*log(x*e + d) - 3*log(x*e + d)))/(b*d*p - a*p*e + b*d - a*e)

________________________________________________________________________________________

Mupad [B]
time = 2.25, size = 178, normalized size = 3.49 \begin {gather*} -{\left (a^2+2\,a\,b\,x+b^2\,x^2\right )}^p\,\left (\frac {a^2\,c\,d}{2\,\left (a\,e-b\,d\right )\,\left (p+1\right )\,{\left (d+e\,x\right )}^{2\,p+3}}+\frac {a\,c\,x\,\left (a\,e+2\,b\,d\right )}{2\,\left (a\,e-b\,d\right )\,\left (p+1\right )\,{\left (d+e\,x\right )}^{2\,p+3}}+\frac {b\,c\,x^2\,\left (2\,a\,e+b\,d\right )}{2\,\left (a\,e-b\,d\right )\,\left (p+1\right )\,{\left (d+e\,x\right )}^{2\,p+3}}+\frac {b^2\,c\,e\,x^3}{2\,\left (a\,e-b\,d\right )\,\left (p+1\right )\,{\left (d+e\,x\right )}^{2\,p+3}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a*c + b*c*x)*(a^2 + b^2*x^2 + 2*a*b*x)^p)/(d + e*x)^(2*p + 3),x)

[Out]

-(a^2 + b^2*x^2 + 2*a*b*x)^p*((a^2*c*d)/(2*(a*e - b*d)*(p + 1)*(d + e*x)^(2*p + 3)) + (a*c*x*(a*e + 2*b*d))/(2
*(a*e - b*d)*(p + 1)*(d + e*x)^(2*p + 3)) + (b*c*x^2*(2*a*e + b*d))/(2*(a*e - b*d)*(p + 1)*(d + e*x)^(2*p + 3)
) + (b^2*c*e*x^3)/(2*(a*e - b*d)*(p + 1)*(d + e*x)^(2*p + 3)))

________________________________________________________________________________________